//默认分页样式
export const pagination = {
    current: 1, //当前页码
    total: 0, // 总条数
    pageSize: 10, //每页中显示10条数据
    showTotal: total => `共${total} 条数据`, //分页中显示总的数据
    showSizeChanger: true,
}
//======================
//门禁职务表头
export const deptTable = [
    {
        width: 80,
        title: '#',
    },
    {
        title: '部门编码',
        width: 150,
        dataIndex: 'code',
    }, {
        title: '部门名称',
        width: 250,
        dataIndex: 'name',
    },
    {
        title: '部门电话',
        width: 200,
        dataIndex: 'phone',
    },
    {
        title: '备注',
        dataIndex: 'remark',
    },
    {
        title: '排序',
        dataIndex: 'sort',
        width: 200,
    },
    {
        title: '操作',
        dataIndex: 'operation',
        width: 180,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];
//门禁职务表头
export const positionTable = [
    {
        title: '职务编码',
        width: 150,
        dataIndex: 'code',
    },
    {
        title: '职务名称',
        width: 200,
        dataIndex: 'name',
    },
    {
        title: '人员数量',
        width: 150,
        align: "center",
        dataIndex: 'staffTotal',
    },
    {
        title: '描述',
        dataIndex: 'description',
        ellipsis: true
    },
    {
        title: '显示排序',
        dataIndex: 'sort',
        width: 100,
    },
    {
        title: '操作',
        dataIndex: 'operation',
        width: 180,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


//分组表头
export const groupTable = [
    {
        title: '分组编码',
        width: 150,
        dataIndex: 'code',
    },
    {
        title: '分组名称',
        width: 200,
        dataIndex: 'name',
    },
    {
        title: '人员数量',
        width: 150,
        align: "center",
        dataIndex: 'staffTotal',
    },
    {
        title: '备注',
        dataIndex: 'description',
        ellipsis: true,
    },
    {
        title: '排序',
        dataIndex: 'sort',
        width: 150,
        scopedSlots: {
            customRender: 'status'
        }
    },
    {
        title: '操作',
        dataIndex: 'operation',
        width: 180,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];
//人员表头
export const staffTable = [
    {
        title: '头像',
        dataIndex: 'avatar',
        width: 90,
        scopedSlots: {customRender: 'avatar'}
    },
    {
        title: '编号',
        width: 150,
        dataIndex: 'code',
    },
    {
        title: '姓名',
        width: 100,
        dataIndex: 'name',
    },
    {
        title: '所属部门',
        width: 200,
        dataIndex: 'deptName',
        ellipsis: true,
    },
    {
        title: '职务岗位',

        dataIndex: 'positionName',
    },
    {
        title: '状态',
        width: 100,
        scopedSlots: {customRender: 'status'}
    },
    {
        title: '操作',
        dataIndex: 'operation',
        width: 250,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];
//人员字典表头
export const staffDictTable = [
    {
        title: '编号',
        width: 80,
        dataIndex: 'code',
    },
    {
        title: '姓名',
        width: 100,
        dataIndex: 'name',
    },
    {
        title: '部门',
        ellipsis: true,
        dataIndex: 'deptName',
    },
    {
        title: '职务',
        width: 100,
        dataIndex: 'positionName',
    },
];


//人员表头
export const accountTable = [
    {
        title: '人员编号',
        width: 150,
        dataIndex: 'code',
    },
    {
        title: '人员姓名',
        width: 200,
        dataIndex: 'name',
    },
    {
        title: '登录账号',
        width: 150,
        align: "center",
        dataIndex: 'staffTotal',
    },
    {
        title: '账号状态',
        width: 150,
        align: "center",
        dataIndex: 'staffTotal',
    },


    {
        title: '登录密码',
        dataIndex: 'description',
        ellipsis: true,
    },


    {
        title: '登录账号',

        width: 180,
        scopedSlots: {
            customRender: 'accountId'
        }
    },


    {
        title: '管理场地',
        dataIndex: 'operation',
        width: 180,
        scopedSlots: {
            customRender: 'accountIdx'
        }
    },




    {
        title: '操作',
        dataIndex: 'operation',
        width: 180,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];
